package com.gimi.cloud.bbp.task.timetask;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * ${DESCRIPTION}
 *
 * @author wbj
 * @version 1.0
 * @Description TODO
 * @create 2018-01-11
 **/
@Component
public class TestTask {

    private static final Logger logger = LoggerFactory.getLogger(TestTask.class);

    /**
     * 不带参数的定时任务
     * @return
     * @throws Exception
     */
    public String  test01() throws Exception{
        logger.info("==================test01");

        return "aaa";
    }

    /**
     * 带参数的定时任务
     * @throws Exception
     */
    public  void test02(String params) throws Exception{
        logger.info("==================test02");
        logger.info("带参数的定时任务，参数："+params);
    }
}
